directional derivatives problems and solutions